package at.fhj.itm10.ticketmaster.dao;

import java.util.List;

import at.fhj.itm10.ticketmaster.entities.Ticket;


public interface TicketDAOInterface {
	
	/**
	 * Insert Ticket.
	 * 
	 * @param entity
	 * @throws DAOException
	 */
	public abstract void insert(Ticket entity) throws DAOException;
	
	/**
	 * Update Ticket.
	 * 
	 * @param entity
	 * @throws DAOException
	 */
	public abstract void update(Ticket entity) throws DAOException;

	/**
	 * Delete Ticket.
	 * 
	 * @param entity
	 * @throws DAOException
	 */
	public abstract void delete(Ticket entity) throws DAOException;

	/**
	 * Find one by id.
	 * 
	 * @param id
	 * @return Ticket
	 * @throws DAOException
	 */
	public abstract Ticket findById(long id) throws DAOException;

	/**
	 * Find all.
	 * 
	 * @return List<Ticket>
	 * @throws DAOException
	 */
	public abstract List<Ticket> findAll() throws DAOException;

}